package com.edu.javaweb.service.impl;

import com.edu.javaweb.mapper.HolidayMapper;
import com.edu.javaweb.pojo.Holiday;
import com.edu.javaweb.service.HolidayService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class HolidayServiceImpl implements HolidayService {
    @Autowired
    private HolidayMapper holidayMapper;
    @Override
    public List<Holiday> findAll() {
        return holidayMapper.findAll();
    }

    @Override
    public void insHoliday(Holiday holiday) {
        holidayMapper.insHoliday(holiday);
    }

    @Override
    public void upHoliday(Holiday holiday) {
        holidayMapper.upHoliday(holiday);
    }

    @Override
    public void delById(Integer id) {
        holidayMapper.delById(id);
    }
}
